﻿$(window).load(function () {
    var tamMain = $(".main").height();
    var tamTreeView = $("#TreeView").height();
    
    if (tamMain > tamTreeView) {
        $(".menu").css("height", tamMain + 20);
    } else {
        $(".menu").css("height", tamTreeView + 20);
    }
});  